<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>修改音乐信息 </title>
</head>
  <body>
  <h1>修改音乐信息</h1>
   <!--显示并可修改指定id的音乐信息，点击提交按钮，跳转到UpdateMusicServlet文件-->
    <form method="post" action="updateMusic">
        <input type="hidden" value="${music.id}" name="id"/>
    	音乐名称:<input type="text" name="musicname" value="${music.musicname}"/><br/>
    	演唱者:<input type="text" name="singer" value="${music.singer}"/><br/>
        排名：<input type="text" name="ranking" value="${music.ranking}"/><br/>
        类型：<select name="category_id" size="1">
        <option value="${music.category_id}">
          <c:choose>
            <c:when test="${music.category_id==1}">流行</c:when>
            <c:when test="${music.category_id==2}">古典</c:when>
            <c:when test="${music.category_id==3}">经典</c:when>
            <c:when test="${music.category_id==4}">国风</c:when>
            <c:otherwise>儿童</c:otherwise>
          </c:choose>
        </option>
        <option value="1">流行</option>
        <option value="2">古典</option>
        <option value="3">经典</option>
        <option value="4">国风</option>
        <option value="5">儿童</option>
    </select><br/>
    	<input type="submit" value="修改">
    </form>

  </body>
</html>
